import axios from "axios";
//获得所有电影api
export const getMovieByName = async (moviename) => {
    const api = "/search?name=" + moviename
    const data = await axios.get(api)
    return data.data
}
export const getMovieByID = async (ID)=>{
    const api = "detail?ids="+ID
    const data = await axios.get(api);
    return data.data
}
//
// export const getMovieByActors = async (actors)=>{
//     const api = "/search?actors="+actors
//     const data = await axios.get(api);
//     return data.data
// }
// export const getMovieByProducer = async (prodocer)=>{
//     const api = "/search?producer="+prodocer
//     const data = await axios.get(api);
//     return data.data
// }
// export const getMovieByYear = async (year)=>{
//     const api = "/search?year="+year
//     const data = await axios.get(api);
//     return data.data
// }
//翻页查找功能---暂时不考虑